a = 's'
print(type(a))
# <class 'str'>
print(a.encode())
# b's'
print(type(a.encode()))
# <class 'bytes '>


a = b'hello Southwest University'
print(type(a))
# <class 'bytes'>
print(a.decode('utf-8'))
# hello world
print(type(a.decode(' utf-8')))
# <class 'str'>

a = b'University'
print(a.hex())
# 556e6976657273697479
print(type(a.hex()))
# <class 'str ' >
